styleproperties: Class ref no longer necessary
authorBenjamin Otte <otte@redhat.com>
Sat, 21 May 2011 01:57:32 +0000 (03:57 +0200)
committerBenjamin Otte <otte@redhat.com>
Sat, 21 May 2011 20:49:43 +0000 (22:49 +0200)
Now that we initialize the pspecs on-demand, we can avoid the class ref.

gtk/gtkstyleproperties.c

index 4328121b58b0e4ab7606a7106d08c7cf16666325..e32c6900ddf91378a51064dc0f85ac831b964419 100644 (file)
@@ -470,13 +470,10 @@ gtk_style_properties_lookup_property (const gchar             *property_name,
                                       GParamSpec             **pspec)
 {
   const GtkStyleProperty *node;
-  GtkStylePropertiesClass *klass;
   gboolean found = FALSE;
 
   g_return_val_if_fail (property_name != NULL, FALSE);
 
-  klass = g_type_class_ref (GTK_TYPE_STYLE_PROPERTIES);
-
   node = gtk_style_property_lookup (property_name);
 
   if (node)
@@ -490,8 +487,6 @@ gtk_style_properties_lookup_property (const gchar             *property_name,
       found = TRUE;
     }
 
-  g_type_class_unref (klass);
-
   return found;
 }